home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Chat & Communication
/
Digsby build 37
/
digsby_setup.exe
/
lib
/
PIL
/
ImageMode.pyo
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2008-10-13
|
1KB
|
31 lines
# Source Generated with Decompyle++
# File: in.pyo (Python 2.5)
_modes = { }
class ModeDescriptor:
def __init__(self, mode, bands, basemode, basetype):
self.mode = mode
self.bands = bands
self.basemode = basemode
self.basetype = basetype
def __str__(self):
return self.mode
def getmode(mode):
if not _modes:
import Image as Image
for basemode, basetype, bands in Image._MODEINFO.items():
_modes[m] = ModeDescriptor(m, bands, basemode, basetype)
_modes['LA'] = ModeDescriptor('LA', ('L', 'A'), 'L', 'L')
_modes['PA'] = ModeDescriptor('PA', ('P', 'A'), 'RGB', 'L')
return _modes[mode]